<template>
  <section>
    <div>
      <el-checkbox v-model="value.value">限定字符长度</el-checkbox>
    </div>
    <div v-if="value.value">
      <el-input v-model="value.minlength" placeholder="最小长度" size="small" :style="{ width: '90px' }"></el-input>
      -
      <el-input v-model="value.maxlength" placeholder="最大长度" size="small" :style="{ width: '90px' }"></el-input>
    </div>
  </section>
</template>

<script>
  export default {
    props: {
      value: {
        type: Object,
        default: null
      },
    },
    data() {
      return {
        sp: {},
        sr: {},
        param: {}
      }
    },
    created(options) {
      let that = this;
      that.xinit();
    },
    methods: {
      xinit() {
        let that = this;
      },
    }
  }
</script>

<style>

</style>
